package com.china08.yxyapi.entity.mg.sws;

import java.util.Date;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * 资讯每日pv统计
 * 
 * @author Richard.Wang
 * 
 */
@SuppressWarnings("serial")
@Document(collection = "sws_article_daily_analyze")
public class SwsArticleForDailyAnalyze extends MongoBaseEntityNoId {

    /**
     * 文章Id+8位日期组合成文章
     */
    @Id
    private String id;

    /**
     * 文章id
     */
    @Field(value = "article_id")
    private String articleId;

    /** 栏目一级ID */
    @Field(value = "section1_id")
    private String section1Id;

    /** 栏目二级ID */
    @Field(value = "section2_id")
    private String section2Id;

    /**
     * 文章所属学校id
     */
    @Field(value = "school_id")
    private String schoolId;

    /**
     * 统计日期
     */
    @Field(value = "date_for_pv")
    private Date dateForPv;

    /**
     * 统计日期中的年 例如2017
     */
    @Field(value = "year_for_pv")
    private Integer yearForPv;

    /**
     * 统计日期中月例如 3
     */
    @Field(value = "month_for_pv")
    private Integer monthForPv;

    /**
     * 统计日期中的日期例如 (15)
     */
    @Field(value = "day_for_pv")
    private Integer dayForPv;

    /** 每日的 访问统计 数量 */
    @Field(value = "pv")
    private Long pv;

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public Date getDateForPv() {
        return dateForPv;
    }

    public void setDateForPv(Date dateForPv) {
        this.dateForPv = dateForPv;
    }

    public Long getPv() {
        return pv;
    }

    public void setPv(Long pv) {
        this.pv = pv;
    }

    public Integer getYearForPv() {
        return yearForPv;
    }

    public void setYearForPv(Integer yearForPv) {
        this.yearForPv = yearForPv;
    }

    public Integer getMonthForPv() {
        return monthForPv;
    }

    public void setMonthForPv(Integer monthForPv) {
        this.monthForPv = monthForPv;
    }

    public Integer getDayForPv() {
        return dayForPv;
    }

    public void setDayForPv(Integer dayForPv) {
        this.dayForPv = dayForPv;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getArticleId() {
        return articleId;
    }

    public void setArticleId(String articleId) {
        this.articleId = articleId;
    }

    public String getSection1Id() {
        return section1Id;
    }

    public void setSection1Id(String section1Id) {
        this.section1Id = section1Id;
    }

    public String getSection2Id() {
        return section2Id;
    }

    public void setSection2Id(String section2Id) {
        this.section2Id = section2Id;
    }

}
